//
//  UserHelper.h
//  Router
//
//  Created by gejiangs on 15/10/16.
//  Copyright © 2015年 dc. All rights reserved.
//

#import "BaseHelper.h"

@interface UserHelper : BaseHelper

-(void)registerWithPhone:(NSString *)phone
                password:(NSString *)password
                 success:(RequestSussess)success
                 failure:(RequestFailure)failure;

-(void)loginWithPhone:(NSString *)phone
             password:(NSString *)password
              success:(RequestSussess)success
              failure:(RequestFailure)failure;

-(void)sendSMSWithPhone:(NSString *)phone
                success:(RequestSussess)success
                failure:(RequestFailure)failure;

- (void)findBackPasswordWithPhone:(NSString *)phone
                         password:(NSString *)password
                         deviceID:(NSString *)deviceID
                          success:(RequestSussess)success
                          failure:(RequestFailure)failure;
/**
 *  设置昵称
 *
 *  @param user     当前用户名
 *  @param nickName 昵称
 *  @param success  <#success description#>
 *  @param failure  <#failure description#>
 */
- (void)setNickNameWithUser:(NSString *)user
               userNickName:(NSString *)nickName
                    success:(RequestSussess)success
                    failure:(RequestFailure)failure;
@end
